#include "debug.h"
#include "../lib/kernel/print.h"

void panic_spin(const char * filename, int line, const char * func, const char * condition)
{
	print_string("Assert(");
	print_string((uint8_t *)condition);
	print_string(") failed!!\r\n");
	print_string("In function: ");
	print_string((char *)func);
	print_string("\r\n");
	print_string("Line: ");
	print_int(line);
	print_string("\r\n");
	while(1);
}